package com.chinasofti.bufferedio;

public class 练习3 {
    public static void main(String[] args) {
        int sum = getJc(5);
        System.out.println("sum="+sum);
    }
    public static  int getJc( int i){
        if (i==1){
            return 1;
        }else {
            return i*getJc(i-1);
        }
    }

}
